#ifndef NAVIGATION_H
#define NAVIGATION_H

#include <QWidget>
#include <QPushButton>
#include <QButtonGroup>
#include "global_def.h"

namespace Ui {
class Navigation;
}

class Navigation : public QWidget
{
    Q_OBJECT

public:
    explicit Navigation(QWidget *parent = nullptr);
    ~Navigation();
    void setNaviBtnChecked(int id);
private:
    Ui::Navigation *ui;
signals:
    void signal_navibtn_index_tcms(int);
    void signal_navibtn_index_cctv(int);
private:
    QList<QString> navinames_tcms_cn_;
    QList<QString> navinames_cctv_cn_;
    QList<QPushButton*> navi_btns_tcms_;
    QList<QPushButton*> navi_btns_cctv_;
    QButtonGroup btngroup_tcms_;
    QButtonGroup btngroup_cctv_;
private:
    void InitTCMSNaviBtns();
    void InitCCTVNaviBtns();
};

#endif // NAVIGATION_H
